package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_ElementEditLog")
@ApiModel(value = "bpmElementEditLog", description = "表单修改日志信息表")
public class BpmElementEditLog  implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnId;
	
	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "所属应用ID", required = true)
	private String appId;
	
	@Column(name = "wf_eldocunid")
	@ApiModelProperty(value = "设计元素的docunid", required = true)
	private String eldocunid;
	
	@Column(name = "Subject")
	@ApiModelProperty(value = "修改原因", required = true)
	private String subject;
	
	@Column(name = "Body")
	@ApiModelProperty(value = "详细说明", required = false)
	private String body;
	
	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "创建用户ID", required = false)
	private String addName;
	
	@Column(name = "WF_AddName_CN")
	@ApiModelProperty(value = "创建用户", required = false)
	private String addNameCn;
	
	@Column(name = "WF_DocCreated")
	@ApiModelProperty(value = "创建时间", required = false)
	private String docCreated;
	
}
